﻿using System;
using System.Collections.Generic;

using System.Text;
using TimKen.DataAccess;
using TimKen.DataEntity;
using System.Data;

namespace TimKen.BussLogic
{
    /// <summary>
    /// 客户折扣管理类
    /// </summary>
    public class CustomerDiscountManager
    {
        private readonly CustomerDiscountDAO dal = new CustomerDiscountDAO();
        public CustomerDiscountManager()
        { }
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(int CustomerID, int StrategyID)
        {
            return dal.Exists(CustomerID, StrategyID);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public CustomerDiscount GetModel(int CustomerID, int StrategyID)
        {

            return dal.GetModel(CustomerID, StrategyID);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetAllList()
        {
            return GetList("");
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        #endregion  成员方法
    }
}
